CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(ROCKSCRIPT) 

IF(CMAKE_COMPILER_IS_GNUCC)
	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w -Wno-deprecated")
ENDIF(CMAKE_COMPILER_IS_GNUCC)

IF(MSVC OR MSVC_IDE OR MSVC60 OR MSVC70 OR MSVC71 OR MSVC80 OR CMAKE_COMPILER_2005 OR MSVC90)
	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0")
ENDIF(MSVC OR MSVC_IDE OR MSVC60 OR MSVC70 OR MSVC71 OR MSVC80 OR CMAKE_COMPILER_2005 OR MSVC90)

IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
	ADD_DEFINITIONS(-D__DEBUG__)
	IF(CMAKE_COMPILER_IS_GNUCC)
		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
	ENDIF(CMAKE_COMPILER_IS_GNUCC)
ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug")

INCLUDE_DIRECTORIES("src")

SET(LIBRARY_OUTPUT_PATH "../../bin")
SET(CMAKE_LIBRARY_PATH  ${CMAKE_LIBRARY_PATH} ../../bin)

ADD_SUBDIRECTORY(src/corelib)
ADD_SUBDIRECTORY(src/paper)
ADD_SUBDIRECTORY(src/tests)
#ADD_SUBDIRECTORY(src/rock)
#ADD_SUBDIRECTORY(src/batch)

